﻿using System.Collections;
using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class PhoneLogin : Message
    {
        public static int TYPE = 7;
        public static int ID = 148;

        private string avatar;
        private string name;
        private int sex;
        private string phone;
        private string pass;
        public static PhoneLogin Create(string a,string n,int s,string p,string pa)
        {
            PhoneLogin pl = new PhoneLogin();
            pl.avatar = a;
            pl.name = n;
            pl.sex = s;
            pl.phone = p;
            pl.pass = pa;
            return pl;
        }
        public void decode(core.io.Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeString(avatar);
            _out.writeString(name);
            _out.writeInt(sex);
            _out.writeString(phone);
            _out.writeString(pass);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}
